doctype html
html
  head
    meta(charset='utf-8')
    title Fake your JSON-Schemas!
    meta(name='viewport' content='width=device-width, initial-scale=1')
    link(rel='stylesheet' href='//fonts.googleapis.com/css?family=Dosis')
    link(rel='shortcut icon' type='image/icon' href='img/favicon.ico')
    link(rel='stylesheet' href='css/app.css')
    script(src='vendor/chance/dist/chance.min.js')
    script(src='vendor/Faker/build/build/faker.js')
    script(src='vendor/yaml.js/dist/yaml.js')
    script(src='vendor/vue/dist/vue.runtime.js')
    script(src='vendor/ace-builds/src-min/ace.js')
    script(src='vendor/ace-builds/src-min/mode-json.js')
    script(src='vendor/ace-builds/src-min/worker-json.js')
    script(src='vendor/ace-builds/src-min/theme-github.js')
    script.
      window.Buffer = Function
      window.TIME = new Date()
    script(src='js/app.js' defer)
    if env.NODE_ENV === 'production'
      script(src='//unpkg.com/json-schema-faker')
    else
      script(src='bundle.js' defer)
  body
    .Toolbar.f
      .p.oh.rel
        a.tdn.tac.github-ribbon(href='//github.com/json-schema-faker/json-schema-faker') Fork me on GitHub
        h1.jsf-logo: a.dib(href='/') JSON Schema Faker
        p.pr #[b JSON Schema Faker] combines JSON Schema standard with fake data generators, allowing users to generate fake data that conform to the schema.
        a.tdn(href=`https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=${BUTTON_ID}` target='_blank')
          img.mr(src='https://img.shields.io/badge/Donate-PayPal-green.svg')
        img.mr(src='https://travis-ci.org/json-schema-faker/json-schema-faker.svg?branch=master')
        img.mr(src='https://badge.fury.io/js/json-schema-faker.svg')
        iframe.mt(src='//ghbtns.com/github-btn.html?user=json-schema-faker&repo=json-schema-faker&type=star&count=true' frameborder=0 scrolling=0 width=120 height=20)

      .p.sm-flx.nosl
        ul.lr.ln.mt.jsf-about
          li.sp.pd.dib
            a.a Options
            .z5.menu
              p Reference: #[a(href='https://github.com/json-schema-faker/json-schema-faker/tree/master/docs#available-options' target='_blank') available options]

              .sm-flx.flx-m
                ul.lr.flx-a
                  li: label
                    span defaultRandExpMax
                    input.f.num(type='number' name='jsfOptions.defaultRandExpMax')

                  li: label
                    span optionalsProbability
                    input.f.num(type='number' name='jsfOptions.optionalsProbability' step='0.1')

                  li: label
                    span minItems
                    input.f.num(type='number' name='jsfOptions.minItems')

                  li: label
                    span maxItems
                    input.f.num(type='number' name='jsfOptions.maxItems')

                  li: label
                    span minLength
                    input.f.num(type='number' name='jsfOptions.minLength')

                  li: label
                    span maxLength
                    input.f.num(type='number' name='jsfOptions.maxLength')

                  li: label
                    span random
                    input.f.num(type='number' name='jsfOptions.random')

                ul.lr.flx-a
                  li: label
                    span resolveJsonPath
                    input(type='checkbox' name='jsfOptions.resolveJsonPath')

                  li: label
                    span ignoreMissingRefs
                    input(type='checkbox' name='jsfOptions.ignoreMissingRefs')

                  li: label
                    span failOnInvalidTypes
                    input(checked type='checkbox' name='jsfOptions.failOnInvalidTypes')

                  li: label
                    span failOnInvalidFormat
                    input(checked type='checkbox' name='jsfOptions.failOnInvalidFormat')

                  li: label
                    span alwaysFakeOptionals
                    input(type='checkbox' name='jsfOptions.alwaysFakeOptionals')

                  li: label
                    span fixedProbabilities
                    input(type='checkbox' name='jsfOptions.fixedProbabilities')

                  li: label
                    span useExamplesValue
                    input(type='checkbox' name='jsfOptions.useExamplesValue')

                  li: label
                    span useDefaultValue
                    input(type='checkbox' name='jsfOptions.useDefaultValue')

                  li: label
                    span requiredOnly
                    input(type='checkbox' name='jsfOptions.requiredOnly')

                  li: label
                    span reuseProperties
                    input(type='checkbox' name='jsfOptions.reuseProperties')

                  li: label
                    span fillProperties
                    input(checked type='checkbox' name='jsfOptions.fillProperties')

          li.sp.pd.dib
            a.a Examples
            ul.lr.z5.menu
              li: a(href='#gist/da0af4611cb5622b54aff57283560da3') boolean
              li: a(href='#gist/4199ca90fb5cd05337824b0695d17b5e') integer
              li: a(href='#gist/d9e27543d84157c1672f87e93ac250cc') inner-references
              li: a(href='#gist/5f81f118fbd4eac01ccacf23a061a8b9') external-references
              li: a(href='#gist/cbb4871d1d2f44760ddafdaa056e1926') enums
              li: a(href='#gist/1f1196844bead96e021ffbd597edcffa') fixed values
              li: a(href='#gist/f4ad1818735f0d0babdc1f12b92013f1') n-times repeated
              li: a(href='#gist/1902737e7bef9573af02a3fc49761c13') faker-properties
              li: a(href='#gist/1a7db173362b127a826a5c2fa7de7561') faker.fake()
              li: a(href='#gist/5dd364aad2d48729efff686c5f7c44b2') chance-guid
              li: a(href='#gist/682f97a2e28e230b51810c55b92f4cdc') chance-name
              li: a(href='#gist/426c2d177243cd2c52594f92c1a7862e') chance-properties
              li: a(href='#gist/d3e75b22ad33e4440df19e0cc060c9f3/0.5.0-rc3') remote-schemas (^0.5.x)

          li.sp.pd.dib
            a.a Community
            ul.lr.z5.menu
              li: a(href='http://json-schema.org' target='_blank') JSON-Schema.org
              li: a(href='//github.com/json-schema-faker/json-schema-faker/' target='_blank') GitHub / #[a(href='//travis-ci.org/json-schema-faker/json-schema-faker' target='_blank') CI]
              li: a(href='//github.com/json-schema-faker/json-schema-faker/issues/new' target='_blank') Contribution
              li: a(href='//github.com/json-schema-faker/angular-jsf' target='_blank') AngularJS module
              li: a(href='//github.com/json-schema-faker/grunt-jsonschema-faker' target='_blank') Grunt plugin
              li: a(href='//github.com/json-schema-faker/json-schema-server' target='_blank') JSF Server

    .sm-flx.flx-m.p
      .flx-a.flx-lt
        #app

    if env.NODE_ENV === 'production'
      script.
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', '#{UA_TOKEN}', 'auto');
        ga('send', 'pageview');
